package com.zhimu.activemq_demo.activemq.embed;

import org.apache.activemq.broker.BrokerService;

/**
 * @Author: Alvin
 * @Date: 2019/6/23 01:12
 * @Description
 */
public class EmbedBroker {

    public static void main(String[] args) throws Exception {

        BrokerService brokerService = new BrokerService();
        brokerService.setUseJmx(true);
        brokerService.addConnector("tcp://localhost:61616");
        brokerService.start();
    }
}
